#ifndef BARCODE_EAN13_DEFS_HPP_INCLUDED
#define BARCODE_EAN13_DEFS_HPP_INCLUDED

namespace barcode
{

enum
{
	_ean13_left_length = 6
	, _ean13_right_length = 6
	, _ean13_total_length = 1 + _ean13_left_length + _ean13_right_length

	, _ean13_left_bits = 3
	, _ean13_right_bits = 3
	, _ean13_center_bits = 5
	, _ean13_valuable_bits = 7
	, _ean13_bytes_count = _ean13_left_length + _ean13_right_length + 3 /* Left + Right + Center */
	, _ean13_bits_count = ( _ean13_left_length + _ean13_right_length ) * _ean13_valuable_bits
			+ _ean13_left_bits
			+ _ean13_right_bits
			+ _ean13_center_bits

	, _ean13_left_byte = 5
	, _ean13_center_byte = 10
	, _ean13_right_byte = _ean13_left_byte
};

}

#endif //BARCODE_EAN13_DEFS_HPP_INCLUDED
